package com.alex.springdata.dao;

import com.alex.springdata.entity.Person;

import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

public class PersonDaoImpl implements PersonDao {

    @PersistenceContext
    private EntityManager entityManager;

    @Override
    public void test() {
        Person person = entityManager.find(Person.class, 1);
        System.out.println(person);
    }
}
